const { http } = uni.$u;
// 获取房产信息
export const getFcInfoApi = (params) =>
  http.get("/appletApi/dzyzk/listFcxx", { params });
// 添加电子业主卡
export const adddzkApi = (params) =>
  http.post("/appletApi/dzyzk/addDzyzk", JSON.stringify(params));
// 获取电子卡列表
export const getdzkListApi = (params) =>
  http.get("/appletApi/dzyzk/listDzyzk", { params });
// 删除电子卡
export const deldzkApi = (params) =>
  http.delete("/appletApi/dzyzk/delDzyzk?dzyzkId=" + params);
// 切换电子卡
export const setdzkApi = (params) =>
  http.get("/appletApi/dzyzk/changeDzk", { params });
// 获取电子卡成员信息
export const getcardCyApi = (params) =>
  http.get("/appletApi/dzyzk/listDzyzkCyxx", { params });
// 添加电子卡成员信息
export const addcardCyApi = (params) =>
  http.post("/appletApi/dzyzk/addDzyzkCyxx", params);
// 删除电子卡成员信息
export const delcardCyApi = (params) =>
  http.delete("/appletApi/dzyzk/delDzyzkCyxx?dzkcyId=" + params);
// 修改电子成员信息
export const editcardCyApi = (params) =>
  http.put("/appletApi/dzyzk/updateDzyzkCyxx", params);
// 报修添加
export const addBxApi = (params) => http.post("/appletApi/sx/yjbx", params);
// 获取电子卡信息
export const getcardInfoApi = (params) =>
  http.get("/appletApi/dzyzk/listDzyzk", { params });
// 评星
export const BxPjApi = (params) => http.get("/appletApi/sx/bxPjxx", { params });
// 获取我的报修列表
export const getBxListApi = (params) =>
  http.get("/appletApi/sx/listMyBx", { params });
// 获取我的报修详情
export const getBxInfoApi = (params) =>
  http.get("/appletApi/sx/getBxInfo", { params });
// 投诉添加
export const addTsApi = (params) => http.post("/appletApi/sx/wyts", params);
// 评星
export const TsPjApi = (params) => http.get("/appletApi/sx/tsPjxx", { params });
// 投诉列表
export const getTsListApi = (params) =>
  http.get("/appletApi/sx/listMyTs", { params });
// 获取我的投诉详情
export const getTsInfoApi = (params) =>
  http.get("/appletApi/sx/getTsInfo", { params });
// 诉求添加
export const addSqApi = (params) => http.post("/appletApi/sx/wdsq", params);
//评星
export const SqPjApi = (params) => http.get("/appletApi/sx/sqPjxx", { params });
// 诉求列表
export const getSqListApi = (params) =>
  http.get("/appletApi/sx/listMySq", { params });
// 诉求详情
export const getSqInfoApi = (params) =>
  http.get("/appletApi/sx/getSqInfo", { params });
// 去获取通知公告列表
export const getNoticeListApi = (params) =>
  http.get("/appletApi/notice/getNoticeList", { params });
// 获取通知公告详情
export const getNoticeInfoApi = (params) =>
  http.get("/appletApi/notice/getNoticeDataById", { params });
// 获取业主大会列表
export const getyzdhListApi = (params) =>
  http.get("/appletApi/yzzz/getYzdh", { params });
// 获取业主大会详情
export const getyzdhInfoApi = (params) =>
  http.get("/appletApi/yzzz/getYzdhDataById", { params });
// 获取业委会成员列表
export const getywhcyListApi = (params) =>
  http.get("/appletApi/yzzz/getYwhcy", { params });
// 业委会申请
export const applyywhApi = (params) =>
  http.post("/appletApi/yzzz/apply", params);
// 业委会申请详情
export const getywhInfoApi = (params) =>
  http.get("/appletApi/yzzz/getYwhsqDataById", { params });
// 业委会申请列表
export const getywhListApi = (params) =>
  http.get("/appletApi/yzzz/getYwhsq", { params });
// 获取红黑榜列表
export const gethhbListApi = (params) =>
  http.get("/appletApi/hhb/getHhbData", { params });
// 红黑榜详情
export const gethhbInfoApi = (params) =>
  http.get("/appletApi/hhb/getHhbDataById", { params });
// 获取我的物业详情
export const getmyWyApi = (params) =>
  http.get("/appletApi/wy/getMywy", { params });
// 获取红色物业列表
export const gethsWyApi = (params) =>
  http.get("/appletApi/hswy/getHswyData", { params });
// 获取红色物业详情
export const gethsWyInfoApi = (params) =>
  http.get("/appletApi/hswy/getHswyDataById", { params });
// 获取政策法规
export const getzcfgListApi = (params) =>
  http.get("/appletApi/zcfg/getZcfgList", { params });
export const getzcfgInfoApi = (params) =>
  http.get("/appletApi/zcfg/getZcfgDataById", { params });
// 获取活动
export const getactivelistApi = (params) =>
  http.get("/appletApi/activity/listActivity", { params });
export const getactiverecordApi = (params) =>
  http.get("/appletApi/activity/listSignup", { params });
export const getactiveInfoApi = (params) =>
  http.get("/appletApi/activity/getDataById", { params });
export const joinActiveApi = (params) =>
  http.post("/appletApi/activity/singup", params);
// 维修基金使用记录列表
export const getsyjlListApi = (params) =>
  http.get("/appletApi/wxjj/getWxjjSyjl", { params });
export const getsyjlInfoApi = (params) =>
  http.get("/appletApi/wxjj/getWxjjSyjlById", { params });
// 获取维修基金表决列表
export const getwxjjListApi = (params) =>
  http.get("/appletApi/wxjj/getWxjjBj", { params });
// 获取详情
export const getwxjjInfoApi = (params) =>
  http.get("/appletApi/wxjj/getWxjjDetail", { params });
// 业主表决
export const yzbjApi = (params) => http.post("/appletApi/wxjj/yzbj", params);
// 维修基金使用流程
export const getsylcApi = (params) =>
  http.get("/appletApi/wxjj/getWxjjSylc", { params });

// 调查问卷
export const getwjListApi = (params) =>
  http.get("/appletApi/dcwj/listDcwj", { params });
export const getwjInfoApi = (params) =>
  http.get("/appletApi/dcwj/gettDcwjById", { params });
export const addwjApi = (data) => http.post("/appletApi/dcwj/answerDcwj", data);

// 收费
export const getszgsListApi = (params) =>
  http.get("/appletApi/zxjf/listSzgs", { params });
export const getfwfjgApi = (params) =>
  http.get("/appletApi/zxjf/getWysfxjbz", { params });
export const getdjzdListApi = (params) =>
  http.get("/appletApi/zxjf/getWyfDj", { params });
export const getszgsInfoApi = (params) =>
  http.get("/appletApi/zxjf/getSzgsDataById", { params });
export const getqtfyListApi = (params) =>
  http.get("/appletApi/zxjf/getQtDj", { params });
export const payApi = (params) =>
  http.get("/appletApi/zxjf/payOrder", { params });
export const getwyjfListApi = (params) =>
  http.get("/appletApi/zxjf/getWyfJf", { params });
export const getqtfyJlListApi = (params) =>
  http.get("/appletApi/zxjf/getQtjF", { params });

// 获取openId
export const getOpenIdApi = (params) =>
  http.get("/appletApi/dzyzk/applet_getOpenId", { params });
//红色列表
export const gethswyListApi = (params) =>
  http.get("/appletApi/hswy/listHswyData", { params });
// 党员活动风采列表
export const getDyhdfclistApi = (params) =>
  http.get("/appletApi/hswy/getDyhdfclist", { params });
// 党员活动风采详情
export const getDyhdfcInfoApi = (params) =>
  http.get("/appletApi/hswy/getDyhdfcById", { params });
// 党支部成员
export const getDzbcylistApi = (params) =>
  http.get("/appletApi/hswy/getDzbcylist", { params });
